import json

if __name__ == '__main__':
    with open('../data/all.jsonl', 'r', encoding='utf-8') as f:
        for line in f.readlines():
            line = json.loads(line.strip())
            text = line['text']
            if hasattr(line, 'entities'):
                label = line['entities']
                print(line)
